interface CancelOrderAPIResData {
  code: number
  msg: string
  time: string
  data: null
}

interface CancelOrderAPIData {
  orderid: string
  order_status: '-1'
  reson: string // 正确拼写为 "reason"
  remark: string
}

export function CancelOrderAPI(data: CancelOrderAPIData, token: string) {
  return httpInstance.post<CancelOrderAPIResData, CancelOrderAPIData>(
    '',
    data,
    { headers: { token } },
  )
}
